/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bar.model;

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;

/**
 * The base model interface for the Mailing service. Represents a row in the &quot;mailing_Mailing&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.bar.model.impl.MailingModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.bar.model.impl.MailingImpl}.
 * </p>
 *
 * @author pgonzalm
 * @see Mailing
 * @see com.bar.model.impl.MailingImpl
 * @see com.bar.model.impl.MailingModelImpl
 * @generated
 */
public interface MailingModel extends BaseModel<Mailing> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. All methods that expect a mailing model instance should use the {@link Mailing} interface instead.
	 */

	/**
	 * Returns the primary key of this mailing.
	 *
	 * @return the primary key of this mailing
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this mailing.
	 *
	 * @param primaryKey the primary key of this mailing
	 */
	public void setPrimaryKey(long primaryKey);

	/**
	 * Returns the mailing ID of this mailing.
	 *
	 * @return the mailing ID of this mailing
	 */
	public long getMailingId();

	/**
	 * Sets the mailing ID of this mailing.
	 *
	 * @param mailingId the mailing ID of this mailing
	 */
	public void setMailingId(long mailingId);

	/**
	 * Returns the user name of this mailing.
	 *
	 * @return the user name of this mailing
	 */
	@AutoEscape
	public String getUserName();

	/**
	 * Sets the user name of this mailing.
	 *
	 * @param userName the user name of this mailing
	 */
	public void setUserName(String userName);

	/**
	 * Returns the create date of this mailing.
	 *
	 * @return the create date of this mailing
	 */
	public Date getCreateDate();

	/**
	 * Sets the create date of this mailing.
	 *
	 * @param createDate the create date of this mailing
	 */
	public void setCreateDate(Date createDate);

	/**
	 * Returns the user surname of this mailing.
	 *
	 * @return the user surname of this mailing
	 */
	@AutoEscape
	public String getUserSurname();

	/**
	 * Sets the user surname of this mailing.
	 *
	 * @param userSurname the user surname of this mailing
	 */
	public void setUserSurname(String userSurname);

	/**
	 * Returns the mailing of this mailing.
	 *
	 * @return the mailing of this mailing
	 */
	public boolean getMailing();

	/**
	 * Returns <code>true</code> if this mailing is mailing.
	 *
	 * @return <code>true</code> if this mailing is mailing; <code>false</code> otherwise
	 */
	public boolean isMailing();

	/**
	 * Sets whether this mailing is mailing.
	 *
	 * @param mailing the mailing of this mailing
	 */
	public void setMailing(boolean mailing);

	/**
	 * Returns the email of this mailing.
	 *
	 * @return the email of this mailing
	 */
	@AutoEscape
	public String getEmail();

	/**
	 * Sets the email of this mailing.
	 *
	 * @param email the email of this mailing
	 */
	public void setEmail(String email);

	/**
	 * Returns the phone of this mailing.
	 *
	 * @return the phone of this mailing
	 */
	public long getPhone();

	/**
	 * Sets the phone of this mailing.
	 *
	 * @param phone the phone of this mailing
	 */
	public void setPhone(long phone);

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public Serializable getPrimaryKeyObj();

	public void setPrimaryKeyObj(Serializable primaryKeyObj);

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(Mailing mailing);

	public int hashCode();

	public CacheModel<Mailing> toCacheModel();

	public Mailing toEscapedModel();

	public String toString();

	public String toXmlString();
}